<?php 

class CommonController extends Controller{
	public function __init(){
		if(!defined('__TEMPLATE__')){
			define('__TEMPLATE__', __ROOT__ . '/Template/' . C('INDEX_TPL_STYLE'));
		}
	}
	public function dis($tpl){
		$this->display("Template/".C('INDEX_TPL_STYLE').'/'.$tpl);
	}
	public function head(){
	    $cate = K('Category')->where("pid=0")->all();
		$this->assign("cate",$cate);
	}
	
}

